<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="Foto: " for="Foto" />
                    <h:inputText id="Foto" value="#{perfilBean.perfil.foto}"/>
                    
<!--                    <p:fileUpload fileUploadListener="#{perfilBean.perfil.foto}"  
            mode="advanced"  
            update="messages"  
            auto="true"  
            sizeLimit="100000"   
            allowTypes="/(\.|\/)(gif|jpe?g|png)$/"/>
                    -->
                    <h:outputLabel value="Relacionamento: " for="Relacionamento" />
                    <h:inputText id="Relacionamento" value="#{perfilBean.perfil.relacionamento}"/>
                    
                    <h:outputLabel value="Etinia: " for="Etinia" />
                    <h:inputText id="Etinia" value="#{perfilBean.perfil.etnia}"/>
                    
                    <h:outputLabel value="Descricao: " for="Descricao" />
                    <h:inputText id="Descricao" value="#{perfilBean.perfil.descricao}"/>                    
                
                </h:panelGrid>
                <br />
                <h:commandLink action="#{perfilBean.grava()}" value="Gravar" />
                <br />
                <br />
                <br />
                <br />
                <h:link outcome="\home\index.xhtml" value="Inicio"/>
            </h:form>
    </h:body>
</html>

